package dataproviders;

import java.util.Random;

public class RandomData implements DataProvider<Integer> {

    public Integer[] getData(int size) {
        if (size <= 0)
            return null;
        Integer[] data = new Integer[size];
        Random random = new Random();
        for (int i = 0; i < size; i++) {
            data[i] = random.nextInt() % 100;
        }
        return data;
    }
}
